package com.itheima.common;

/**
 * @Auther: guozy
 * @Date: 2022/7/30 - 07 - 30 - 18:01
 * @Description: com.itheima.common
 * @version: 1.0
 */
public class BaseContest {
    private static ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static Long getCurrentId() {
        return threadLocal.get();
    }

    public static void setCurrentId(Long id) {
        threadLocal.set(id);
    }
}
